package com.itheima.reggie;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Dish;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {
    //查询菜品所有
    Page<Dish> findMy(Integer pageNum, Integer pageSize, String name);

    //菜品列表查询
    List<Category> save(Integer type);

    //菜品新增
    void add(Dish dish);

    //根据id回显数据
    Dish findMyId(Long id);

    //修改数据
    void update(Dish dish);

    //停售方式
    //void xs(int id,Long[] id);
    void xs(Long[] ids, int id);
    //起售方法
    //删除菜品
    List<Long> delete(List<Long> ids);



    //查询
    List<Dish> findById(Long categoryId, Integer status);


}
